import uuid

ASYNC_MODEL = 'eventlet'
CORS_ALLOWED_ORIGINS = '*'

# 阿里云OSS
ACCESSKEYID = 'LTAI4FcUyrfUpE7VZGYcuu3m'
ACCESSKEYSECRET = 'X06ffVcC8wbfFypM8zrXNLryqo9K6s'


# 文件缓存路径
TOKEN_KEY = 's27002d1087534546a24ef418a3be97d4'
FILE_CACHE_DIR_PATH = 'offline_message'


host = '127.0.0.1'
port = '3306'
username = 'root'
passwd = '123456'
database = 'chat'
charset = 'utf8'

DB_URL = 'mysql+pymysql://{username}:{passwd}@{host}:{port}/{database}?{charset}'.format(username=username,passwd=passwd,host=host,
                                                                                      port=port,database=database,charset=charset)

REDISADDR = ('127.0.0.1',6379)